package cn.laixueit.mapper;

import cn.laixueit.pojo.Page;
import cn.laixueit.pojo.Student;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface StudentMapper {
    public List<Student> findall();

    public Student findbyid(Integer id);
    public List<Student> findbyname(Student student);
    public List<Student> findbyname2(Student student);

    public int save(Student student);
    public int saveList(ArrayList<Student> list);

    public int delList(ArrayList<Integer> list);

    public int delbyid(Integer id);

    public int update(Student student);

    public List<Student> findListName(Student student);
    public List<Student> findListName2(Student student);
    public List<Student> findListName3(String username);
    public List<Student> findListName4(String username);

    public List<Student> findPage(Page page);


    public List<Student> findPage2(Map<String,Integer> map);

    List<Student> findPageCondition(Map<String,Object> map);
}
